﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _43继承
{
    class Chenxy : Fulei
    {
        public Chenxy(string name,int age,char gender,int work)
            :base (name,age,gender)
        {
            this.Work = work;
        }

        public int _work;
        public int Work
        {
            get { return _work; }
            set { _work = value; }
        }

        public void Sayh()
        {
            Console.WriteLine("我叫{0}，我是一名程序员，我是{1}生，今年{2}岁了，我的工作年限是{3}年",this.Name,this.Gender,this.Age,this.Work);
        }
    }
}
